package module3;

import java.io.PrintStream;
import java.util.Scanner;

public class Pyramid {
	static final int DIEPTE = 15;
	static final int SCHERM_BREEDTE = 80;
	char letter;
	PrintStream out;
	Scanner in;
	Pyramid(){
		out = new PrintStream(System.out);
		in = new Scanner(System.in);
	}
	void printRegel(int spaties,int aantalLetters, char letter){
		printCharacter(' ',spaties);
		printCharacter(letter,aantalLetters);
		out.printf("\n");
	}
	void printCharacter(char c,int n){
		for(int i = 0;i < n;i++){
			out.printf("%c",c);
		}
	}
	void start(){
		char letter = 'a';
		int aantalLetters=1;
		for(int i = 0;i < DIEPTE;i++){
			int spaties = SCHERM_BREEDTE/2 - i;
			aantalLetters += 2;
			printRegel(spaties,aantalLetters,letter);
			letter++;
		}
	}
	public static void main(String[] args) {
		new Pyramid().start();
	}

}
